const mongoose = require('mongoose');

let userSchema = new mongoose.Schema({ // 表结构对象
    user: {
        type: String
    },
    pwd: {
        type: String
    },
    create_date: {
        type: Date,
        default: Date.now()
    }
})

var userModel = mongoose.model('userModel', userSchema); // 操作表结构对象的数据模型

module.exports = userModel;
